import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pawnshop.settings')
django.setup()

from api import models

for i in range(1, 20):
    models.Release.objects.create(
        position='武直%s' % i,
        content='%s' % i,
        userinfo_id=1,
        topic_id=1
    )
